
import Layout from '@/views/layout/Layout'

const bargain_manage = {
  path: '/bargain_manage',
  component: Layout,
  name: 'bargain_manage',
  alwaysShow: true,
  meta: { title: '合同管理', roles: ['1', '17', '18', '16', '15'], icon: 'huabanfuben' },
  children: [
    {
      path: 'sales',
      name: 'bargain_manage.sales',
      component: () => import('@/views/bargain_manage/sales/index'),
      meta: { title: '销售合同', icon: 'subsystem', fullPath: '/bargain_manage/sales' }
    },
    {
      path: 'sales_edit',
      name: 'bargain_manage.sales.sales_edit',
      hidden: true,
      component: () => import('@/views/bargain_manage/sales/bargain_edit'),
      meta: { title: '销售合同', icon: 'subsystem', fullPath: '/bargain_manage/sales_edit' }
    },
    {
      path: 'purchase',
      name: 'bargain_manage.purchase',
      component: () => import('@/views/bargain_manage/purchase/index'),
      meta: { title: '采购合同', roles: ['18'], icon: 'subsystem', fullPath: '/bargain_manage/purchase' }
    },
    {
      path: 'purchase_edit',
      name: 'bargain_manage.purchase.purchase_edit',
      hidden: true,
      component: () => import('@/views/bargain_manage/purchase/bargain_edit'),
      meta: { title: '采购合同', roles: ['18'], icon: 'subsystem', fullPath: '/bargain_manage/purchase_edit' }
    }
  ]
}

export default bargain_manage
